﻿using System.Data.Entity;
using System.Data.Entity.SqlServer;
using System.Runtime.CompilerServices;
using SolidDemo.Data.ProjectData;
using SolidDemo.Data.Seeded;
using SolidDemo.Data.Shared;

namespace SolidDemo.Data.Contexts
{
    public class MainContext : DbContext
    {
        public MainContext()
            : base("Main")
        {
            // This line forces the entityframework.sqlserver.dll assembly to be copied to bin when the site is published. jb
            var instanceExists = SqlProviderServices.Instance != null;
        }

        // Seeded Data
        public DbSet<Pump> Pumps { get; set; }

        // Collected Data
        public DbSet<Log> Logs { get; set; }
        public DbSet<Project> Projects { get; set; }
    }
}
